<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="pagination" tagdir="/WEB-INF/tags"%>
<ul class="breadcrumb">
  <li><a href="#">Home</a> <span class="divider">>></span></li>
  <li><a href="#">Library</a> <span class="divider">>></span></li>
  <li class="active">Data</li>
</ul>
<table class="table table-bordered">
  <tr>
    <th>#</th>
    <th>Name</th>
    <th>Description</th>
    <th>Action</th>
    <c:forEach items="${pager.resultSet}" var="model">
      <tr>
        <td>${model.id}</td>
        <td>${model.name}</td>
        <td>${model.shortDescription}</td>
        <td><a href="<%=request.getContextPath()%>/accounting/products/${model.id}">View</a>&nbsp; <a href="<%=request.getContextPath()%>/accounting/products/${model.id}/edit">Edit</a> <a href="<%=request.getContextPath()%>/accounting/products/${model.id}/deactivate" onclick="return confirm('Are you sure you want to delete?')"> Delete</a></td>
      </tr>
    </c:forEach>
  </tr>
</table>
<pagination:pagination pager="${pager}" />